package com.example.figurehecheng.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 场馆信息表
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("venues")
@ApiModel(value="Venues对象", description="场馆信息表")
public class Venues implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "场馆ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "场馆名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "场馆类型：展览馆、博物馆、演艺活动")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "场馆地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "开放时间")
    @TableField("opening_hours")
    private String openingHours;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private BigDecimal latitude;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "状态：1-正常，0-关闭")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "场馆描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "场馆id")
    @TableField("mid")
    private Integer mid;


}
